package com.forum.community.entity.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

//用来装父子评论的类
@Data
public class DiscussionVo implements Serializable {
    private Long id;

    private Long userId;

    private String disscussContent;

    //评论的评论
    private List<DiscussionVo> children;

    //讨论的层级，是一级评论还是二级评论（评论的评论），一级评论level=0，二级评论level=1
    private Long disscussLevel;

    private Date createTime;
    //父评论id
    private Long parentId;

}
